package com.yyfax.pay.order.model.to;

import com.yyfax.pay.common.model.to.YYPayParams;

/**
 * 异步通知请求参数
 * 
 * @author buyi
 * @date 2017-04-15 16:26:40
 * @since v1.0.0
 */
@SuppressWarnings("serial")
public class ResultNotifyParams extends YYPayParams {
	private NotifyParams params;

	public NotifyParams getParams() {
		return params;
	}

	public void setParams(NotifyParams params) {
		this.params = params;
	}

	public static class NotifyParams extends YYPayParams {
		private Integer resultCode;
		private String resultMsg;
		private String merchantCode;
		private String orderId;
		private String userId;
		private String paymentCode;
		private String serialNo;
		private Integer amount;
		private String name;
		private String idNo;
		private String cardNo;
		private String bankCode;
		private String bankName;
		/** 1.2.0 新增手机号码  buyi*/
		private String phone;

		public Integer getResultCode() {
			return resultCode;
		}

		public void setResultCode(Integer resultCode) {
			this.resultCode = resultCode;
		}

		public String getResultMsg() {
			return resultMsg;
		}

		public void setResultMsg(String resultMsg) {
			this.resultMsg = resultMsg;
		}

		public String getMerchantCode() {
			return merchantCode;
		}

		public void setMerchantCode(String merchantCode) {
			this.merchantCode = merchantCode;
		}

		public String getOrderId() {
			return orderId;
		}

		public void setOrderId(String orderId) {
			this.orderId = orderId;
		}

		public String getUserId() {
			return userId;
		}

		public void setUserId(String userId) {
			this.userId = userId;
		}

		public String getPaymentCode() {
			return paymentCode;
		}

		public void setPaymentCode(String paymentCode) {
			this.paymentCode = paymentCode;
		}

		public String getSerialNo() {
			return serialNo;
		}

		public void setSerialNo(String serialNo) {
			this.serialNo = serialNo;
		}

		public Integer getAmount() {
			return amount;
		}

		public void setAmount(Integer amount) {
			this.amount = amount;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getIdNo() {
			return idNo;
		}

		public void setIdNo(String idNo) {
			this.idNo = idNo;
		}

		public String getCardNo() {
			return cardNo;
		}

		public void setCardNo(String cardNo) {
			this.cardNo = cardNo;
		}

		public String getBankCode() {
			return bankCode;
		}

		public void setBankCode(String bankCode) {
			this.bankCode = bankCode;
		}

		public String getBankName() {
			return bankName;
		}

		public void setBankName(String bankName) {
			this.bankName = bankName;
		}
		
		public String getPhone() {
			return phone;
		}

		public void setPhone(String phone) {
			this.phone = phone;
		}

		@Override
		public String[] signFields() {
			return new String[] { "resultCode", "resultMsg", "merchantCode", "orderId", "userId", "paymentCode", "serialNo", "amount", "name", "idNo",
					"cardNo", "bankCode", "bankName","phone" };
		}
	}

	@Override
	public boolean validate() throws Exception {
		return true;
	}

	@Override
	public String[] signFields() {
		return null;
	}

}
